﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Security.Principal;

namespace tcms.Miscellaneous
{
	public static class Extensions
	{
		public static bool IsInRoles(this IPrincipal me, params string[] roles)
		{
			return roles.Any(o => me.IsInRole(o));
		}
	}
}